{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "from bs4 import BeautifulSoup\n",
    "from urllib.request import urlretrieve"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['http://pic202.nipic.com/pic/20190112/16027755_162146515000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_171726642000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_173727083000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_174439377000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_174206181000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_173727001000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_171621189000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_174106109000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_174931588000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_175034149000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_174216772000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_174256648000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_173727102000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_171551200000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_175636641000_4.jpg', 'http://pic202.nipic.com/pic/20190112/16027755_162521339000_4.jpg', 'http://pic201.nipic.com/pic/20190104/27993615_115204447084_4.jpg', 'http://pic200.nipic.com/pic/20190103/19327933_091033669135_4.jpg', 'http://pic200.nipic.com/pic/20190102/17656238_091830644086_4.jpg', 'http://pic199.nipic.com/pic/20181226/19461102_171940435000_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102253435084_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102252530085_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102251376083_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102302342083_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102303091080_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102304636086_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102258208082_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102259066080_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102259971089_4.jpg', 'http://pic198.nipic.com/pic/20181221/11568799_102300860088_4.jpg']\n"
     ]
    }
   ],
   "source": [
    "dowmload_links = []\n",
    "path = 'file/image/'\n",
    "headers={'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'}\n",
    "url = 'http://www.nipic.com/design/acg/renwu/index.html'\n",
    "res = requests.get(url,headers=headers)\n",
    "soup = BeautifulSoup(res.text,'lxml')\n",
    "# print(res.text)\n",
    "imgs = soup.select('li> a > span >img')\n",
    "# print(imgs)\n",
    "for img in imgs:\n",
    "#     print(img.get('data-src'))\n",
    "    dowmload_links.append(img.get('data-src'))\n",
    "print(dowmload_links)\n",
    "for item in dowmload_links:\n",
    "    new_path=path+item[-18:]\n",
    "    urlretrieve(item,new_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "http://jandan.net/ooxx"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {},
   "outputs": [],
   "source": [
    "from lxml import etree"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[]\n",
      "<!DOCTYPE html>\r\n",
      "<html dir=\"ltr\" lang=\"zh\">\r\n",
      "<head>\r\n",
      "    <!-- BEGIN html head -->\r\n",
      "<title>\r\n",
      "随手拍 - 分享经典一刻\r\n",
      "</title>\r\n",
      "        <meta name=\"keywords\" content=\"随手拍,身边的趣图,手机摄影,经典一刻\"/>\r\n",
      "    <meta name=\"description\" content=\"大家手机相册里应该有不少有趣的图片，欢迎发到这里，分享你的经典一刻。\"/>\r\n",
      "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\r\n",
      "\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n",
      "    <meta name=\"renderer\" content=\"webkit\">\r\n",
      "    <meta http-equiv=\"Window-target\" Content=\"_top\">\r\n",
      "    <meta name=\"baidu-site-verification\" content=\"9wC0PEtTmEqSNlOk\"/>\r\n",
      "    <meta http-equiv=\"mobile-agent\"\r\n",
      "          content=\"format=html5; url=//i.jandan.net/ooxx\">\r\n",
      "                    <meta name=\"robots\" content=\"index,follow\">\r\n",
      "        <link rel=\"stylesheet\" href=\"//cdn.jandan.net/static/min/9960eb59d656f399bffab83031d10365Vd7kjfQe.16100003.css\" type=\"text/css\"\r\n",
      "          media=\"screen\"/>\r\n",
      "        <link rel=\"apple-touch-icon\" href=\"//cdn.jandan.net/static/img/appicon.png\">\r\n",
      "    <link rel=\"shortcut icon\" href=\"//cdn.jandan.net/static/img/favicon.ico\"/>\r\n",
      "<link rel=\"canonical\" href=\"http://jandan.net/ooxx\" />    <script>if (window != top)top.location.href = window.location.href;</script>\r\n",
      "    <!--[if lt IE 9]>\r\n",
      "    <script src=\"//apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js\"></script>\r\n",
      "    <![endif]-->\r\n",
      "    <!--[if gte IE 9]><!-->\r\n",
      "    <script src=\"//apps.bdimg.com/libs/jquery/2.0.3/jquery.min.js\"></script>\r\n",
      "    <!--<![endif]-->\r\n",
      "    <script src=\"//cdn.jandan.net/static/js/velocity-1.5.0.min.js\"></script>\r\n",
      "\t<script src=\"//apps.bdimg.com/libs/jquery-lazyload/1.9.5/jquery.lazyload.js\"></script>\r\n",
      "    <script>\r\n",
      "\t\tvar $JANDAN = {\r\n",
      "            GO_API: false,\r\n",
      "\t\t\tIS_MOBILE : false,\r\n",
      "\t\t\tCOOKIE_HASH : '01b0531fab6a989460dd1b231010b496',\r\n",
      "\t\t\tSITE_URL : 'http://jandan.net',\r\n",
      "            API_URL : '//api.jandan.net'\r\n",
      "\t\t};\r\n",
      "\t\tif (/(Android|iPhone|Windows Phone)/i.test(navigator.userAgent)) {\r\n",
      "\t\t\twindow.location = '//i.jandan.net' + window.location.pathname + window.location.hash;\r\n",
      "\t\t}\r\n",
      "    </script>\r\n",
      "            <script src=\"//cdn.jandan.net/static/min/5fcf8e2d425723b9c1943edba343bf05HeUUn8G0.03100001.js\"></script>\r\n",
      "    <script>\r\n",
      "        eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\\\b'+e(c)+'\\\\b','g'),k[c]);return p}('(g(){1 d=[\"j\",\"a\",\"0\",\"d\",\"a\",\"0\",\".\",\"0\",\"e\",\"f\"];1 3=7 8(d.2(\\'\\')+\\'$\\');4(!3.9(b.c)){1 a=5.6.h;4(a==\\'/\\'){a=\\'\\'}5.6.i=\\'k://\\'+d.2(\\'\\')+\\'/\\'+a}})($l);',22,22,'n|var|join|r|if|window|location|new|RegExp|test||document|domain|||t|function|pathname|href||http|JANDAN'.split('|'),0,{}));\r\n",
      "    </script>\r\n",
      "\t\r\n",
      "</head>\r\n",
      "<!-- END html head -->\r\n",
      "<body>\r\n",
      "<!-- BEGIN wrapper -->\r\n",
      "\r\n",
      "<div id=\"wrapper\">\r\n",
      "\r\n",
      "    <!-- BEGIN header -->\r\n",
      "    <div id=\"header\">\r\n",
      "        <div class=\"logo\">\r\n",
      "            <h1><a href=\"/\" onclick=\"ga('send', 'pageview','/header/logo');\">煎蛋</a></h1>\r\n",
      "        </div>\r\n",
      "        <div class=\"break\"></div>\r\n",
      "        <div class=\"nav\">\r\n",
      "            <ul class=\"nav-items\">\r\n",
      "                <li class=\"nav-item f\"><a href=\"/\" onfocus=\"blur()\" onclick=\"ga('send', 'pageview','/header/index');\" class=\"nav-link\">首页</a></li>\r\n",
      "                <li class=\"nav-item x\">\r\n",
      "\t                <a href=\"javascript:;\" class=\"nav-link\">专题</a>\r\n",
      "\t                <div class=\"sub-items\">\r\n",
      "\t\t                <table class=\"tag-cloud\">\r\n",
      "\t\t\t                <thead>\r\n",
      "\t\t\t                <tr>\r\n",
      "\t\t\t\t                <th>科学</th>\r\n",
      "\t\t\t\t                <th>技术</th>\r\n",
      "\t\t\t\t                <th>极客</th>\r\n",
      "\t\t\t\t                <th>脑洞</th>\r\n",
      "\t\t\t\t                <th>故事</th>\r\n",
      "\t\t\t\t                <th>人类</th>\r\n",
      "\t\t\t\t                <th>折腾</th>\r\n",
      "\t\t\t                </tr>\r\n",
      "\t\t\t                </thead>\r\n",
      "\t\t\t                <tbody>\r\n",
      "\t\t\t                <tr>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/走进科学\" onfocus=\"blur()\" >走进科学</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/tech\" onfocus=\"blur()\" >TECH</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/GEEK\" onfocus=\"blur()\" >GEEK</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/DIY\" onfocus=\"blur()\" >DIY</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/冷新闻\" onfocus=\"blur()\">冷新闻</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/女性\" onfocus=\"blur()\">女性</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/减肥\" onfocus=\"blur()\">减肥</a></td>\r\n",
      "\t\t\t                </tr>\r\n",
      "\t\t\t                <tr>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/无厘头研究\" onfocus=\"blur()\" >无厘头研究</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/人工智能\" onfocus=\"blur()\" >人工智能</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/MEME\" onfocus=\"blur()\" >MEME</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/艺术\" onfocus=\"blur()\" >艺术</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/爷有钱\" onfocus=\"blur()\" >爷有钱</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/熊孩子\" onfocus=\"blur()\" >熊孩子</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/整形\" onfocus=\"blur()\" >整形</a></td>\r\n",
      "\r\n",
      "\t\t\t                </tr>\r\n",
      "\t\t\t                <tr>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/天文\" onfocus=\"blur()\" >天文</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/无人机\" onfocus=\"blur()\" >无人机</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/quora\" onfocus=\"blur()\" >QUORA</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/设计\" onfocus=\"blur()\" >设计</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/致富信息\" onfocus=\"blur()\" >致富信息</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/大丈夫\" onfocus=\"blur()\" >大丈夫</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/旅游\" onfocus=\"blur()\" >旅游</a></td>\r\n",
      "\t\t\t                </tr>\r\n",
      "\t\t\t                <tr>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/nasa\" onfocus=\"blur()\" >NASA</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/3D打印\" onfocus=\"blur()\" >3D打印</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/小学堂\" onfocus=\"blur()\" >小学堂</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/广告\" onfocus=\"blur()\" >广告</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/安全警示\" onfocus=\"blur()\" >安全警示</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/笨贼\" onfocus=\"blur()\" >笨贼</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/健康\" onfocus=\"blur()\" >健康</a></td>\r\n",
      "\t\t\t                </tr>\r\n",
      "\t\t\t                <tr>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/高科技\" onfocus=\"blur()\">高科技</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/数码产品\" onfocus=\"blur()\">数码产品</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/创意产品\" onfocus=\"blur()\">创意产品</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/建筑\" onfocus=\"blur()\">建筑</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/国内观光\" onfocus=\"blur()\">国内观光</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/真的猛士\" onfocus=\"blur()\" >真的猛士</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/教育\" onfocus=\"blur()\" >教育</a></td>\r\n",
      "\r\n",
      "\t\t\t                </tr>\r\n",
      "\t\t\t                <tr>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/环保\" onfocus=\"blur()\" >环保</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/虚拟现实\" onfocus=\"blur()\" >虚拟现实</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/whatif\" onfocus=\"blur()\">WHAT IF</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/摄影\" onfocus=\"blur()\" >摄影</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/史海钩沉\" onfocus=\"blur()\" >史海钩沉</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/正能量\" onfocus=\"blur()\" >正能量</a></td>\r\n",
      "\t\t\t\t                <td><a href=\"/tag/心理学\" onfocus=\"blur()\" >心理学</a></td>\r\n",
      "\t\t\t                </tr>\r\n",
      "\t\t\t                </tbody>\r\n",
      "\t\t                </table>\r\n",
      "\r\n",
      "\r\n",
      "\t                </div>\r\n",
      "                </li>\r\n",
      "                <li class=\"nav-item\"><a class=\"nav-link\" href=\"/qa\" onfocus=\"blur()\" onclick=\"ga('send', 'pageview','/header/qa');\" class=\"nav-link\">问答</a></li>\r\n",
      "                <li class=\"nav-item\"><a class=\"nav-link\" href=\"/duan\" onfocus=\"blur()\" onclick=\"ga('send', 'pageview','/header/duan');\" class=\"nav-link\">段子</a></li>\r\n",
      "                <li class=\"nav-item\"><a class=\"nav-link\" href=\"/ooxx\" onfocus=\"blur()\" onclick=\"ga('send', 'pageview','/header/ooxx');\" class=\"nav-link\">随手拍</a></li>\r\n",
      "                <li class=\"nav-item\"><a class=\"nav-link\" href=\"/pic\" onfocus=\"blur()\" onclick=\"ga('send', 'pageview','/header/pic');\" class=\"nav-link\">无聊图</a></li>\r\n",
      "                <li class=\"nav-item\"><a class=\"nav-link\" href=\"/top\" onfocus=\"blur()\" onclick=\"ga('send', 'pageview','/header/top');\" class=\"nav-link\">热榜</a></li>\r\n",
      "                <li class=\"nav-item\" style=\"float:right;\"><a class=\"nav-link\"  style=\"color:#666\" href=\"/pond\" onfocus=\"blur()\" onclick=\"ga('send', 'pageview','/header/pond');\" class=\"nav-link\">鱼塘</a></li>\r\n",
      "                <li class=\"nav-item\" style=\"float:right;\"><a class=\"nav-link\" style=\"color:#666\" href=\"/zhoubian\" onfocus=\"blur()\" onclick=\"ga('send', 'pageview','/header/zhoubian');\">周边</a></li>\r\n",
      "\r\n",
      "            </ul>\r\n",
      "            <div class=\"break\"></div>\r\n",
      "        </div>\r\n",
      "    </div>\r\n",
      "    <!-- END header -->\r\n",
      "\r\n",
      "    <!-- BEGIN body -->\r\n",
      "    <div id=\"body\">\r\n",
      "\t<!-- BEGIN content -->\r\n",
      "\t<div id=\"content\">\r\n",
      "\t\t\t\t\t<h1 class=\"title\">随手拍</h1>\r\n",
      "\t\t\t<!-- begin post -->\r\n",
      "\t\t\t<div class=\"post f\">\r\n",
      "\t\t\t\t<p>大家手机相册里应该有不少有趣的图片，欢迎发到这里，分享你的经典一刻。</p>\n",
      "<p><small><strong>发图方法</strong><br />\n",
      "上传到<a href=\"//photo.weibo.com/photos/upload\">微博相册</a>；右键复制图片地址，在<a href=\"#respond\">评论框</a>粘帖图片地址；等待更新。<br />\n",
      "请勿发布AV截图/裸体/露点图/偷拍、带有网址/商标/二维码等水印、涉嫌隐私或转载他人的未授权图片。<br />\n",
      "</small></p>\n",
      "<hr />\n",
      "\t\t\t\t<style>\n",
      "\t.switch {\n",
      "\t\tdisplay: inline-block;\n",
      "\t\tpadding: 0 5px;\n",
      "\t\tborder: 1px solid #444;\n",
      "\t\tcursor: pointer;\n",
      "\t\tline-height: 14px;\n",
      "\t\ttext-align: center;\n",
      "\t\tcolor: #aaa;\n",
      "\t\tfont-size: 10px;\n",
      "\t\tvertical-align: middle;\n",
      "\t}\n",
      "\t.switch-current {\n",
      "\t\tbackground-color: #333;\n",
      "\t\tcolor: #fff;\n",
      "\n",
      "\t}\n",
      "\n",
      "</style>\n",
      "<p>\n",
      "\tGIF图点击加载: <span class=\"switch switch-current\" id=\"gif-click-load-on\">ON</span><span class=\"switch \" id=\"gif-click-load-off\">OFF</span>&nbsp;&nbsp;\n",
      "\tNSFW图自动隐藏: <span class=\"switch switch-current\" id=\"nsfw-click-load-on\">ON</span><span class=\"switch \" id=\"nsfw-click-load-off\">OFF</span>&nbsp;&nbsp;\n",
      "\t隐藏不受欢迎图片: <span class=\"switch switch-current\" id=\"bad-click-load-on\">ON</span><span class=\"switch \" id=\"bad-click-load-off\">OFF</span>\n",
      "</p>\t\t\t</div>\r\n",
      "\t\t\t<!-- end post -->\r\n",
      "\t\t\t<!-- begin comments -->\r\n",
      "\t\t\t<div id=\"comments\">\r\n",
      "\r\n",
      "    <div style=\"clear:both;\"></div>\r\n",
      "\r\n",
      "    <h3 class=\"title\" id=\"comments\"><span\r\n",
      "            class=\"plusone\"><a href=\"#respond\" title=\"来一发\">+1</a></span></h3>\r\n",
      "\r\n",
      "\r\n",
      "    <span class=\"break\"></span>\r\n",
      "    <div class=\"comments\">\r\n",
      "                        <div class=\"cp-pagenavi\">\r\n",
      "            \t\t\t                                    <span class=\"current-comment-page\">[42]</span>\r\n",
      "                                                            <a href=\"//jandan.net/ooxx/page-41#comments\">\r\n",
      "                    41                </a>\r\n",
      "                                                            <a href=\"//jandan.net/ooxx/page-40#comments\">\r\n",
      "                    40                </a>\r\n",
      "                                                    <a title=\"Older Comments\" href=\"//jandan.net/ooxx/page-41#comments\" class=\"previous-comment-page\">下一页</a>\r\n",
      "                    </div>\r\n",
      "            </div>\r\n",
      "\r\n",
      "\r\n",
      "    <ol class=\"commentlist\" style=\"list-style-type: none;\">\r\n",
      "\r\n",
      "                \t\t\t\r\n",
      "            <li id=\"comment-4107450\">\r\n",
      "                <div>\r\n",
      "                    <div class=\"row\">\r\n",
      "                        <div class=\"author\"><strong\r\n",
      "                                title=\"防伪码：d60b962fb784a10e8cb11a5274e297ff277340de\" class=\"\">纸飞机</strong>                            <br>\r\n",
      "                            <small><a href=\"#footer\" title=\"@回复\"\r\n",
      "                                      onclick=\"document.getElementById('comment').value += &#39;@&lt;a href=&quot;//jandan.net/ooxx/page-42#comment-4107450&quot;&gt;纸飞机&lt;/a&gt;: &#39;\">@59 mins ago</a></span></small>\r\n",
      "                        </div>\r\n",
      "                        <div class=\"text\"><span class=\"righttext\"><a href=\"//jandan.net/ooxx/page-42#comment-4107450\">4107450</a></span><p><img src=\"//img.jandan.net/img/blank.gif\" onload=\"jandan_load_img(this)\" /><span class=\"img-hash\">Ly93czIuc2luYWltZy5jbi9tdzYwMC8wMDc0NVlhTWd5MWZ6OW1pbmxycmFqMzJjMDI1OWhkdy5qcGc=</span></p>\n",
      "                        </div>\r\n",
      "                        <div class=\"jandan-vote\">\r\n",
      "                            <span class=\"comment-report-c\">\r\n",
      "                                <a title=\"举报\" href=\"javascript:;\" class=\"comment-report\" data-id=\"4107450\">[举报]</a>\r\n",
      "                            </span>\r\n",
      "                            <span class=\"tucao-like-container\">\r\n",
      "                            <a title=\"圈圈/支持\" href=\"javascript:;\" class=\"comment-like like\" data-id=\"4107450\" data-type=\"pos\">OO</a> [<span>6</span>]\r\n",
      "                            </span>\r\n",
      "                            <span class=\"tucao-unlike-container\">\r\n",
      "                            <a title=\"叉叉/反对\" href=\"javascript:;\" class=\"comment-unlike unlike\" data-id=\"4107450\" data-type=\"neg\">XX</a> [<span>9</span>]\r\n",
      "\r\n",
      "                            <a href=\"javascript:;\" class=\"tucao-btn\" data-id=\"4107450\"> 吐槽 [2] </a>\r\n",
      "                            </span>\r\n",
      "                        </div>\r\n",
      "                    </div>\r\n",
      "                </div>\r\n",
      "            </li>\r\n",
      "\r\n",
      "                         \r\n",
      "                                                \r\n",
      "                                \t\t\t\r\n",
      "            <li id=\"comment-4107441\">\r\n",
      "                <div>\r\n",
      "                    <div class=\"row\">\r\n",
      "                        <div class=\"author\"><strong\r\n",
      "                                title=\"防伪码：acb29cf5ee354a830f9db5ad26e9be9666f39303\" class=\"\">来个C</strong>                            <br>\r\n",
      "                            <small><a href=\"#footer\" title=\"@回复\"\r\n",
      "                                      onclick=\"document.getElementById('comment').value += &#39;@&lt;a href=&quot;//jandan.net/ooxx/page-42#comment-4107441&quot;&gt;来个C&lt;/a&gt;: &#39;\">@1 hour ago</a></span></small>\r\n",
      "                        </div>\r\n",
      "                        <div class=\"text\"><span class=\"righttext\"><a href=\"//jandan.net/ooxx/page-42#comment-4107441\">4107441</a></span><p><img src=\"//img.jandan.net/img/blank.gif\" onload=\"jandan_load_img(this)\" /><span class=\"img-hash\">Ly93eDEuc2luYWltZy5jbi9tdzYwMC8wMDc2QlNTNWx5MWZ6OW1menR0MW9qMzB1MDE4ejFrei5qcGc=</span></p>\n",
      "                        </div>\r\n",
      "                        <div class=\"jandan-vote\">\r\n",
      "                            <span class=\"comment-report-c\">\r\n",
      "                                <a title=\"举报\" href=\"javascript:;\" class=\"comment-report\" data-id=\"4107441\">[举报]</a>\r\n",
      "                            </span>\r\n",
      "                            <span class=\"tucao-like-container\">\r\n",
      "                            <a title=\"圈圈/支持\" href=\"javascript:;\" class=\"comment-like like\" data-id=\"4107441\" data-type=\"pos\">OO</a> [<span>10</span>]\r\n",
      "                            </span>\r\n",
      "                            <span class=\"tucao-unlike-container\">\r\n",
      "                            <a title=\"叉叉/反对\" href=\"javascript:;\" class=\"comment-unlike unlike\" data-id=\"4107441\" data-type=\"neg\">XX</a> [<span>1</span>]\r\n",
      "\r\n",
      "                            <a href=\"javascript:;\" class=\"tucao-btn\" data-id=\"4107441\"> 吐槽 [2] </a>\r\n",
      "                            </span>\r\n",
      "                        </div>\r\n",
      "                    </div>\r\n",
      "                </div>\r\n",
      "            </li>\r\n",
      "\r\n",
      "                         \r\n",
      "                                                \r\n",
      "                                \t\t\t\r\n",
      "            <li id=\"comment-4107430\">\r\n",
      "                <div>\r\n",
      "                    <div class=\"row\">\r\n",
      "                        <div class=\"author\"><strong\r\n",
      "                                title=\"防伪码：a29374a96e8a4e7babbe34f3c94922093a08c927\" class=\"\">keic</strong>                            <br>\r\n",
      "                            <small><a href=\"#footer\" title=\"@回复\"\r\n",
      "                                      onclick=\"document.getElementById('comment').value += &#39;@&lt;a href=&quot;//jandan.net/ooxx/page-42#comment-4107430&quot;&gt;keic&lt;/a&gt;: &#39;\">@1 hour ago</a></span></small>\r\n",
      "                        </div>\r\n",
      "                        <div class=\"text\"><span class=\"righttext\"><a href=\"//jandan.net/ooxx/page-42#comment-4107430\">4107430</a></span><p>接龙？<br />\n",
      "<img src=\"//img.jandan.net/img/blank.gif\" onload=\"jandan_load_img(this)\" /><span class=\"img-hash\">Ly93dzMuc2luYWltZy5jbi9tdzYwMC8wMDczb2I2UGd5MWZ6OW01ZG5yMjVqMzB1MDE0MDFrei5qcGc=</span></p>\n",
      "                        </div>\r\n",
      "                        <div class=\"jandan-vote\">\r\n",
      "                            <span class=\"comment-report-c\">\r\n",
      "                                <a title=\"举报\" href=\"javascript:;\" class=\"comment-report\" data-id=\"4107430\">[举报]</a>\r\n",
      "                            </span>\r\n",
      "                            <span class=\"tucao-like-container\">\r\n",
      "                            <a title=\"圈圈/支持\" href=\"javascript:;\" class=\"comment-like like\" data-id=\"4107430\" data-type=\"pos\">OO</a> [<span>7</span>]\r\n",
      "                            </span>\r\n",
      "                            <span class=\"tucao-unlike-container\">\r\n",
      "                            <a title=\"叉叉/反对\" href=\"javascript:;\" class=\"comment-unlike unlike\" data-id=\"4107430\" data-type=\"neg\">XX</a> [<span>10</span>]\r\n",
      "\r\n",
      "                            <a href=\"javascript:;\" class=\"tucao-btn\" data-id=\"4107430\"> 吐槽 [0] </a>\r\n",
      "                            </span>\r\n",
      "                        </div>\r\n",
      "                    </div>\r\n",
      "                </div>\r\n",
      "            </li>\r\n",
      "\r\n",
      "                         \r\n",
      "                                    <span class=\"break\"></span><li class=\"row\">\r\n",
      "<div style=\"padding-left:120px;padding-top:10px;padding-bottom:15px;width:336px;\">\r\n",
      "<!-- 336-tuwen -->\r\n",
      "<script type=\"text/javascript\" src=\"//a3.jandan.net/site/api/zxm78u.js?kfcunl=nc\"></script></div>\r\n",
      "                        </li>            \r\n",
      "                                \t\t\t\r\n",
      "            <li id=\"comment-4107407\">\r\n",
      "                <div>\r\n",
      "                    <div class=\"row\">\r\n",
      "                        <div class=\"author\"><strong\r\n",
      "                                title=\"防伪码：acb29cf5ee354a830f9db5ad26e9be9666f39303\" class=\"\">来个C</strong>                            <br>\r\n",
      "                            <small><a href=\"#footer\" title=\"@回复\"\r\n",
      "                                      onclick=\"document.getElementById('comment').value += &#39;@&lt;a href=&quot;//jandan.net/ooxx/page-42#comment-4107407&quot;&gt;来个C&lt;/a&gt;: &#39;\">@1 hour ago</a></span></small>\r\n",
      "                        </div>\r\n",
      "                        <div class=\"text\"><span class=\"righttext\"><a href=\"//jandan.net/ooxx/page-42#comment-4107407\">4107407</a></span><p><img src=\"//img.jandan.net/img/blank.gif\" onload=\"jandan_load_img(this)\" /><span class=\"img-hash\">Ly93eDQuc2luYWltZy5jbi9tdzYwMC8wMDc2QlNTNWx5MWZ6OWxvMW91eG1qMzBrMDBxb2duNS5qcGc=</span></p>\n",
      "                        </div>\r\n",
      "                        <div class=\"jandan-vote\">\r\n",
      "                            <span class=\"comment-report-c\">\r\n",
      "                                <a title=\"举报\" href=\"javascript:;\" class=\"comment-report\" data-id=\"4107407\">[举报]</a>\r\n",
      "                            </span>\r\n",
      "                            <span class=\"tucao-like-container\">\r\n",
      "                            <a title=\"圈圈/支持\" href=\"javascript:;\" class=\"comment-like like\" data-id=\"4107407\" data-type=\"pos\">OO</a> [<span>21</span>]\r\n",
      "                            </span>\r\n",
      "                            <span class=\"tucao-unlike-container\">\r\n",
      "                            <a title=\"叉叉/反对\" href=\"javascript:;\" class=\"comment-unlike unlike\" data-id=\"4107407\" data-type=\"neg\">XX</a> [<span>8</span>]\r\n",
      "\r\n",
      "                            <a href=\"javascript:;\" class=\"tucao-btn\" data-id=\"4107407\"> 吐槽 [1] </a>\r\n",
      "                            </span>\r\n",
      "                        </div>\r\n",
      "                    </div>\r\n",
      "                </div>\r\n",
      "            </li>\r\n",
      "\r\n",
      "                         \r\n",
      "                                                \r\n",
      "                                \r\n",
      "    </ol>\r\n",
      "    <div class=\"comments\">\r\n",
      "                <div class=\"cp-pagenavi\">\r\n",
      "            \t\t\t                                    <span class=\"current-comment-page\">[42]</span>\r\n",
      "                                                            <a href=\"//jandan.net/ooxx/page-41#comments\">\r\n",
      "                    41                </a>\r\n",
      "                                                            <a href=\"//jandan.net/ooxx/page-40#comments\">\r\n",
      "                    40                </a>\r\n",
      "                                                    <a title=\"Older Comments\" href=\"//jandan.net/ooxx/page-41#comments\" class=\"previous-comment-page\">下一页</a>\r\n",
      "                    </div>\r\n",
      "            </div>\r\n",
      "\r\n",
      "\r\n",
      "    <span class=\"break\"></span>\r\n",
      "    <div class=\"comments\">\r\n",
      "\r\n",
      "\r\n",
      "        <h3>\r\n",
      "            <p id=\"respond\">发表评论</p>\r\n",
      "        </h3>\r\n",
      "    </div>\r\n",
      "\r\n",
      "\r\n",
      "    \r\n",
      "        <form method=\"post\" id=\"commentform\">\r\n",
      "\r\n",
      "\r\n",
      "                <div class=\"hide-input\">\r\n",
      "                    <p><label for=\"author\">称呼: </label><input type=\"text\" name=\"author\" id=\"author\"\r\n",
      "                                                              value=\"\"\r\n",
      "                                                              title=\"常用的网络 ID，必填项\" size=\"22\" tabindex=\"1\"/></p>\r\n",
      "\r\n",
      "                    <p><label for=\"email\">邮箱: </label><input type=\"text\" name=\"email\" id=\"email\"\r\n",
      "                                                             value=\"\"\r\n",
      "                                                             title=\"真实 Email 地址，必填项\" size=\"22\" tabindex=\"2\"/></p>\r\n",
      "                </div>\r\n",
      "\r\n",
      "\r\n",
      "            <p><textarea name=\"comment\" id=\"comment\" rows=\"10\" tabindex=\"4\"\r\n",
      "                         onkeydown=\"if(event.ctrlKey&&event.keyCode==13){document.getElementById('submit').click();return false};\"></textarea>\r\n",
      "            </p>\r\n",
      "\r\n",
      "            <p><input name=\"submit\" id=\"submit\" type=\"submit\" tabindex=\"5\" value=\"点击发布 / Ctrl+Enter\"/>\r\n",
      "\r\n",
      "                <input type=\"hidden\" name=\"comment_post_ID\" id=\"comment_post_ID\" value=\"21183\"/>\r\n",
      "                <br/></p>\r\n",
      "            \r\n",
      "        </form>\r\n",
      "\r\n",
      "    \r\n",
      "</div>\r\n",
      "\t\t\t<!-- end comments -->\r\n",
      "\t\t\t<div id=\"tucao-gg\">\r\n",
      "    <div style=\"padding:20px 0 10px 125px;border-top:1px solid #EEE;border-bottom:1px solid #EEE;\"><div style=\"width:336px;\">\r\n",
      "    <font color=\"#AAA\">[ 广告 ]</font><br>\r\n",
      "    <!-- 336 adx -->\r\n",
      "    <script async src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"></script>\r\n",
      "<!-- 煎蛋网-首页-336x280 -->\r\n",
      "<ins class=\"adsbygoogle\"\r\n",
      "style=\"display:inline-block;width:336px;height:280px\"\r\n",
      "data-ad-client=\"ca-pub-5673546663729848\"\r\n",
      "data-ad-slot=\"1965170595/jandannet-home-336x280\">\r\n",
      "</ins>\r\n",
      "<script>\r\n",
      "(adsbygoogle=window.adsbygoogle || []).push({});\r\n",
      "</script>    </div></div>\r\n",
      "</div>\r\n",
      "<script>\r\n",
      "    (function($) {\r\n",
      "        var prev = $('<span id=\"nav_prev\"><a href=\"javascript:;\" title=\"上一页\">&#8250;</a></span>');\r\n",
      "        var next = $('<span id=\"nav_next\"><a href=\"javascript:;\" title=\"下一页\">&#8249;</a></span>');\r\n",
      "\r\n",
      "        $('#body').append(prev).append(next);\r\n",
      "        $().ready(function() {\r\n",
      "            var prev_link = $('.next-comment-page');\r\n",
      "            if (prev_link.length > 0) {\r\n",
      "                next.show();\r\n",
      "                next.find('a').attr('href', prev_link.attr('href'));\r\n",
      "            } else {\r\n",
      "                next.hide();\r\n",
      "            }\r\n",
      "            \r\n",
      "            var next_link = $('.previous-comment-page');\r\n",
      "            if (next_link.length > 0) {\r\n",
      "                prev.show();\r\n",
      "                prev.find('a').attr('href', next_link.attr('href'));\r\n",
      "            } else {\r\n",
      "                prev.hide();\r\n",
      "            }\r\n",
      "        });\r\n",
      "    })($);\r\n",
      "</script>\r\n",
      "\t\t\t<script>\n",
      "\tvar gif_click_load = getCookie('gif-click-load');\n",
      "\tvar bad_click_load = getCookie('bad-click-load');\n",
      "\tvar nsfw_click_load = getCookie('nsfw-click-load');\n",
      "\tvar gif_on = (gif_click_load == 'on' || gif_click_load == null) ? true : false;\n",
      "\tvar nsfw_on = (nsfw_click_load == 'on' || nsfw_click_load == null) ? true : false;\n",
      "\tvar bad_on = (bad_click_load == 'on' || bad_click_load == null) ? true : false;\n",
      "\n",
      "\n",
      "\t$('.switch').removeClass('switch-current');\n",
      "\tvar btn_id = 'gif-click-load-off';\n",
      "\tif (gif_on) {\n",
      "\t\tbtn_id = 'gif-click-load-on';\n",
      "\t}\n",
      "\t$('#'+btn_id).addClass('switch-current');\n",
      "\n",
      "\tbtn_id = 'nsfw-click-load-off';\n",
      "\tif (nsfw_on) {\n",
      "\t\tbtn_id = 'nsfw-click-load-on';\n",
      "\t}\n",
      "\t$('#'+btn_id).addClass('switch-current');\n",
      "\n",
      "\n",
      "\tbtn_id = 'bad-click-load-off';\n",
      "\tif (bad_on) {\n",
      "\t\tbtn_id = 'bad-click-load-on';\n",
      "\t}\n",
      "\t$('#'+btn_id).addClass('switch-current');\n",
      "\n",
      "\n",
      "\n",
      "\t$('#gif-click-load-on').click(function() {\n",
      "\n",
      "\t\tif ($(this).hasClass('switch-current'))\n",
      "\t\t\treturn;\n",
      "\t\tsetCookie('gif-click-load', 'on', 30);\n",
      "\t\t$('#gif-click-load-off').removeClass('switch-current');\n",
      "\t\t$(this).addClass('switch-current');\n",
      "\t\tlocation.reload();\n",
      "\t});\n",
      "\n",
      "\t$('#gif-click-load-off').click(function() {\n",
      "\t\tif ($(this).hasClass('switch-current'))\n",
      "\t\t\treturn;\n",
      "\t\tsetCookie('gif-click-load', 'off', 30);\n",
      "\t\t$('#gif-click-load-on').removeClass('switch-current');\n",
      "\t\t$(this).addClass('switch-current');\n",
      "\t\tlocation.reload();\n",
      "\t});\n",
      "\n",
      "\t$('#nsfw-click-load-on').click(function() {\n",
      "\t\tif ($(this).hasClass('switch-current'))\n",
      "\t\t\treturn;\n",
      "\t\tsetCookie('nsfw-click-load', 'on', 30);\n",
      "\t\t$('#nsfw-click-load-off').removeClass('switch-current');\n",
      "\t\t$(this).addClass('switch-current');\n",
      "\t\tlocation.reload();\n",
      "\t});\n",
      "\n",
      "\t$('#nsfw-click-load-off').click(function() {\n",
      "\t\tif ($(this).hasClass('switch-current'))\n",
      "\t\t\treturn;\n",
      "\t\tsetCookie('nsfw-click-load', 'off', 30);\n",
      "\t\t$('#nsfw-click-load-on').removeClass('switch-current');\n",
      "\t\t$(this).addClass('switch-current');\n",
      "\t\tlocation.reload();\n",
      "\t});\n",
      "\n",
      "\t$('#bad-click-load-on').click(function() {\n",
      "\t\tif ($(this).hasClass('switch-current'))\n",
      "\t\t\treturn;\n",
      "\t\tsetCookie('bad-click-load', 'on', 30);\n",
      "\t\t$('#bad-click-load-off').removeClass('switch-current');\n",
      "\t\t$(this).addClass('switch-current');\n",
      "\t\tlocation.reload();\n",
      "\t});\n",
      "\n",
      "\t$('#bad-click-load-off').click(function() {\n",
      "\t\tif ($(this).hasClass('switch-current'))\n",
      "\t\t\treturn;\n",
      "\t\tsetCookie('bad-click-load', 'off', 30);\n",
      "\t\t$('#bad-click-load-on').removeClass('switch-current');\n",
      "\t\t$(this).addClass('switch-current');\n",
      "\t\tlocation.reload();\n",
      "\t});\n",
      "\t$(\".commentlist li\").each(function () {\n",
      "\t\tvar e = $(this);\n",
      "\t\tvar is_bad = false;\n",
      "\t\tif (bad_on) {\n",
      "\t\t\tvar oo = parseInt(e.find('.comment-like').next('span').text());\n",
      "\t\t\tvar xx = parseInt(e.find('.comment-unlike').next('span').text());\n",
      "\t\t\t// oo xx 总和超过50个，且xx占多数\n",
      "\t\t\tif ( (oo + xx) >= 50 && (oo / xx) < 0.618 ) {\n",
      "\t\t\t\tis_bad = true;\n",
      "\t\t\t\tvar r = e.find(\"p\").not('.bad_content');\n",
      "\t\t\t\tr.hide();\n",
      "\t\t\t\te.find('.righttext').after('<p class=\"bad_content\" style=\"color:#ddd\">因不受欢迎已被超载鸡自动隐藏.  <a href=\"javascript:;\" class=\"view_bad\">[手贱一回]</a></p>');\n",
      "\t\t\t\te.find(\".view_bad\").click(function () {\n",
      "\t\t\t\t\tif (this.innerHTML == '[手贱一回]' || this.innerHTML == '[再手贱一回]') {\n",
      "\t\t\t\t\t\tr.show();\n",
      "\t\t\t\t\t\tif (this.innerHTML == '[手贱一回]') {\n",
      "\t\t\t\t\t\t\tr.find('.gif-mask').remove();\n",
      "\t\t\t\t\t\t\tr.find('img').each(function() {\n",
      "\t\t\t\t\t\t\t\tvar org_src = this.getAttribute('org_src');\n",
      "\t\t\t\t\t\t\t\tif (org_src)\n",
      "\t\t\t\t\t\t\t\t\tthis.src = org_src;\n",
      "\t\t\t\t\t\t\t});\n",
      "\t\t\t\t\t\t}\n",
      "\t\t\t\t\t\tthis.innerHTML = '[真不该手贱]';\n",
      "\t\t\t\t\t} else {\n",
      "\t\t\t\t\t\tr.hide();\n",
      "\t\t\t\t\t\tthis.innerHTML = '[再手贱一回]';\n",
      "\t\t\t\t\t}\n",
      "\t\t\t\t});\n",
      "\t\t\t}\n",
      "\t\t}\n",
      "\n",
      "\t\tif ( ! is_bad && nsfw_on) {\n",
      "\t\t\tvar p = e.find(\"p\").not('.bad_content');\n",
      "\t\t\tif (p.length == 0) // ad line\n",
      "\t\t\t\treturn;\n",
      "\t\t\tvar content = p.html();\n",
      "\t\t\tif (content.indexOf('NSFW') > -1) {\n",
      "\t\t\t\tp.hide();\n",
      "\t\t\t\te.find('.righttext').after('<p class=\"nsfw_content\" style=\"color:#ff6600\">此图被标记为<b>NSFW</b>被超载鸡自动隐藏.  <a href=\"javascript:;\" class=\"view_nsfw\">[旁边没人]</a></p>');\n",
      "\t\t\t\te.find(\".view_nsfw\").click(function () {\n",
      "\t\t\t\t\tif (this.innerHTML == '[旁边没人]' || this.innerHTML == '[旁边还是没人]') {\n",
      "\t\t\t\t\t\tp.show();\n",
      "\t\t\t\t\t\tp.find('.gif-mask').remove();\n",
      "\t\t\t\t\t\tif (this.innerHTML == '[旁边没人]') {\n",
      "\t\t\t\t\t\t\tp.find('img').each(function() {\n",
      "\t\t\t\t\t\t\t\tvar org_src = this.getAttribute('org_src');\n",
      "\t\t\t\t\t\t\t\tif (org_src)\n",
      "\t\t\t\t\t\t\t\t\tthis.src = org_src;\n",
      "\t\t\t\t\t\t\t});\n",
      "\t\t\t\t\t\t}\n",
      "\t\t\t\t\t\tthis.innerHTML = '[看完了，擦键盘]';\n",
      "\t\t\t\t\t} else {\n",
      "\t\t\t\t\t\tp.hide();\n",
      "\t\t\t\t\t\tthis.innerHTML = '[旁边还是没人]';\n",
      "\t\t\t\t\t}\n",
      "\t\t\t\t});\n",
      "\t\t\t}\n",
      "\t\t}\n",
      "\n",
      "\t});\n",
      "</script>\t\t\t<script>\r\n",
      "\t$('.commentlist li p img').each(function (imgIndex) {\r\n",
      "\t\tvar max_width = $(this).parent().parent().width();\r\n",
      "\t\t$(this).css('max-width', max_width);\r\n",
      "\t\t$(this).css('max-height', '750px').click(function () {\r\n",
      "\t\t\tvar $this = $(this);\r\n",
      "\t\t\tif ($this.css('max-height') == 'none') {\r\n",
      "\t\t\t\tvar max_width = $(this).parent().parent().width();\r\n",
      "\t\t\t\t$this.css('max-width', max_width);\r\n",
      "\t\t\t\t$this.css('max-height', '750px');\r\n",
      "\t\t\t} else {\r\n",
      "\t\t\t\tif ($this.parent().hasClass('acv_comment'))\r\n",
      "\t\t\t\t\t$this.css('max-width', 'none');\r\n",
      "\t\t\t\t$this.css('max-height', 'none');\r\n",
      "\t\t\t}\r\n",
      "\t\t\t$(\"html,body\").animate(\r\n",
      "\t\t\t\t{\r\n",
      "\t\t\t\t\tscrollTop: $this.offset().top - 40\r\n",
      "\t\t\t\t},\r\n",
      "\t\t\t\t325\r\n",
      "\t\t\t);\r\n",
      "\t\t});\r\n",
      "\t});\r\n",
      "</script>\r\n",
      "\t\t\t<script>\n",
      "\t$(\"img.lazy\").each(function () {\n",
      "\t\t$(this).lazyload({\n",
      "\t\t\teffect: \"fadeIn\"\n",
      "\t\t});\n",
      "\t});\n",
      "</script>            <script>\r\n",
      "    $().ready(function () {\r\n",
      "        $comments = $('#comments-title');\r\n",
      "        $cancel = $('#cancel-comment-reply-link');\r\n",
      "        cancel_text = $cancel.text();\r\n",
      "        $submit = $('#commentform #submit');\r\n",
      "        $submit.attr('disabled', false);\r\n",
      "        $('#comment').after('<div id=\"loading\"class=\"loading\"></div><div id=\"error\">#</div>');\r\n",
      "        $('#loading').hide();\r\n",
      "        $('#error').hide();\r\n",
      "        function nl2br(str) {\r\n",
      "            var breakTag = '<br>';\r\n",
      "            return (str + '').replace(/([^>\\r\\n]?)(\\r\\n|\\n\\r|\\r|\\n)/g, '$1' + breakTag + '$2');\r\n",
      "        }\r\n",
      "        $('#commentform').submit(function () {\r\n",
      "            $('#loading').slideDown();\r\n",
      "            $submit.attr('disabled', false);\r\n",
      "            $.ajax({\r\n",
      "                url: '/jandan-comment.php',\r\n",
      "                data: $(this).serialize(),\r\n",
      "                type: $(this).attr('method'),\r\n",
      "                error: function (request) {\r\n",
      "                    $('#loading').slideUp();\r\n",
      "                    var errorhtml = request.responseText;\r\n",
      "                    errorhtml = errorhtml.replace(/WordPress &rsaquo; Error/i, \"\");\r\n",
      "                    $('#error').slideDown().html('<p style=\"color:red;\"> ' + errorhtml + '</p> ');\r\n",
      "                    setTimeout(function () {\r\n",
      "                        $submit.attr('disabled', false).fadeTo('slow', 1);\r\n",
      "                        $('#error').slideUp();\r\n",
      "                    }, 5000);\r\n",
      "                },\r\n",
      "                success: function (comment_id) {\r\n",
      "                    $('#loading').hide();\r\n",
      "\r\n",
      "                    var new_row = [];\r\n",
      "                    new_row.push('<li id=\"comment-#id#\" style=\"display:none;\">');\r\n",
      "                    new_row.push('<div>');\r\n",
      "                    new_row.push('<div class=\"row\">');\r\n",
      "                    new_row.push('<div class=\"author\"><strong>'+ $('#author').val() +'</strong>');\r\n",
      "                    new_row.push('<br>');\r\n",
      "                    new_row.push('<small>');\r\n",
      "                    new_row.push('<a href=\"javascript:;\" title=\"@1 min ago\" >@1 min ago</a>');\r\n",
      "                    new_row.push('</small>');\r\n",
      "                    new_row.push('</div>');\r\n",
      "                    new_row.push('<div class=\"text\"><p>'+ nl2br($('#comment').val()) +'</p>');\r\n",
      "                    new_row.push('<div class=\"vote\" id=\"vote-#id#\">');\r\n",
      "                    new_row.push('<span id=\"acv_stat_\"></span>');\r\n",
      "                    new_row.push('<a title=\"圈圈/支持\" class=\"acvclick acv4\" id=\"vote4-#id#\" href=\"javascript:acv_vote(#id#,1);\">oo</a> [<span id=\"cos_support-#id#\">0</span>]');\r\n",
      "                    new_row.push('<a title=\"叉叉/反对\" class=\"acvclick acva\" id=\"votea-#id#\" href=\"javascript:acv_vote(#id#,0);\">xx</a> [<span id=\"cos_unsupport-#id#\">0</span>]</div>');\r\n",
      "                    new_row.push('</div>');\r\n",
      "                    new_row.push('</div>');\r\n",
      "                    new_row.push('<span class=\"break\"></span></div>');\r\n",
      "                    new_row.push('</li>');\r\n",
      "\r\n",
      "                    var new_row_html = new_row.join(\"\\n\").replace(/#id#/g, comment_id);\r\n",
      "                    $('.commentlist').append(new_row_html);\r\n",
      "\r\n",
      "                    $('textarea').each(function () {\r\n",
      "                        this.value = ''\r\n",
      "                    });\r\n",
      "\r\n",
      "                    $('#comment-' + comment_id).fadeIn();\r\n",
      "                    $body = (window.opera) ? (document.compatMode == \"CSS1Compat\" ? $('html') : $('body')) : $('html,body');\r\n",
      "                    $body.animate({\r\n",
      "                        scrollTop: $('#comment-' + comment_id).offset().top - 200\r\n",
      "                    }, 900);\r\n",
      "                }\r\n",
      "            });\r\n",
      "            return false\r\n",
      "        });\r\n",
      "\r\n",
      "        $('textarea').keypress(function (e) {\r\n",
      "            if (e.ctrlKey && e.which == 13 || e.which == 10) {\r\n",
      "                $(this).parent().submit()\r\n",
      "            }\r\n",
      "        });\r\n",
      "\r\n",
      "        // 显示＠信息\r\n",
      "        $('.commentlist li p a').each(function () {\r\n",
      "            var $this = $(this);\r\n",
      "            if ($this.attr('href').match(/^#comment-/)) {\r\n",
      "                $this.addClass('atreply').hover(function (e) {\r\n",
      "                    $($this.attr('href')).clone().hide().insertAfter($this.parents('li')).attr('id', '').addClass('tip').fadeIn(200)\r\n",
      "                }, function () {\r\n",
      "                    $('.tip').fadeOut(400, function () {\r\n",
      "                        $(this).remove()\r\n",
      "                    })\r\n",
      "                })\r\n",
      "            }\r\n",
      "        });\r\n",
      "\r\n",
      "        var comment_author = getCookie('comment_author_'+ $JANDAN.COOKIE_HASH);\r\n",
      "        var comment_email = getCookie('comment_author_email_'+ $JANDAN.COOKIE_HASH);\r\n",
      "        if (comment_author) {\r\n",
      "            var author = htmlEscape(decodeURIComponent(comment_author));\r\n",
      "            $('#commentform #author').val(author);\r\n",
      "            var edit = $('<a href=\"javascript:;\">EDIT</a>').click(function() {\r\n",
      "                $('.hide-input').toggle();\r\n",
      "            });\r\n",
      "            $('#respond').html(author + ', 想说点什么? &nbsp;&nbsp;').append(edit);\r\n",
      "            $('.hide-input').hide();\r\n",
      "        }\r\n",
      "        if (comment_email) {\r\n",
      "            $('#commentform #email').val(decodeURIComponent(comment_email));\r\n",
      "        }\r\n",
      "    });\r\n",
      "</script>\t\t\r\n",
      "\t</div>\r\n",
      "\t<!-- END content -->\r\n",
      "\r\n",
      "<!-- BEGIN sidebar -->\r\n",
      "<div id=\"sidebar\">\r\n",
      "\r\n",
      "       <form action=\"https://www.so.com/s\" target=\"_blank\" id=\"cse-search-box\">\r\n",
      "   <input type=\"text\" autocomplete=\"off\" name=\"q\" id=\"s\" value=\"\" placeholder=\"搜索\"></input>\r\n",
      "        <button type=\"submit\" id=\"so360_submit\">Search</button>\r\n",
      "        <input type=\"hidden\" name=\"ie\" value=\"utf8\">\r\n",
      "        <input type=\"hidden\" name=\"src\" value=\"zz_jandan.net\">\r\n",
      "        <input type=\"hidden\" name=\"site\" value=\"jandan.net\">\r\n",
      "        <input type=\"hidden\" name=\"rg\" value=\"1\">\r\n",
      "    </form>\r\n",
      "    \r\n",
      "<!--1- top banner -->\r\n",
      "            <!-- ad middle -->\r\n",
      "        <ul><!-- 300-adx -->\r\n",
      "            <script async src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"></script>\r\n",
      "<!-- 煎蛋网-全站侧栏-300x250 -->\r\n",
      "<ins class=\"adsbygoogle\"\r\n",
      "style=\"display:inline-block;width:300px;height:250px\"\r\n",
      "data-ad-client=\"ca-pub-5673546663729848\"\r\n",
      "data-ad-slot=\"1965170595/jandannet-sidebar-300x250\">\r\n",
      "</ins>\r\n",
      "<script>\r\n",
      "(adsbygoogle=window.adsbygoogle || []).push({});\r\n",
      "</script>        </ul>\r\n",
      "    \r\n",
      "<!-- 2- direct banner -->\r\n",
      "<ul>\r\n",
      "<a href=\"//api.jandan.net/money.php?redirect_id=172\" target=\"_blank\" target=\"_blank\" rel=\"external nofollow\"><img src=\"//cdn.jandan.net/static/ss/recreate-games.gif\" border=\"0\" height=\"75\" width=\"300\"></a><span class=\"dot\" data-id=\"172\"></span><!-- recreate games -->\r\n",
      "</ul>\r\n",
      "\r\n",
      "<!-- 3-middle  content -->\r\n",
      "            \r\n",
      "        <!-- 热文 -->\r\n",
      "    <div class=\"hot-list\">\r\n",
      "        <ul class=\"hot-tabs\">\r\n",
      "            <li id=\"tab-hotposts\" class=\"current\">24H热文</li>\r\n",
      "            <li id=\"tab-hotlike\">三日最赞</li>\r\n",
      "            <li id=\"tab-hotcomments\">一周话题</li>\r\n",
      "            <div class=\"break\"></div>\r\n",
      "        </ul>\r\n",
      "        <div class=\"host-list-split\"></div>\r\n",
      "        <div class=\"hot-list-item hot-list-item-current\" id=\"list-hotposts\">\r\n",
      "            <!-- 日点击排行 -->\r\n",
      "            <ol>\r\n",
      "\t\t<script>\r\n",
      "\t\tdocument.write(decodeURIComponent('%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Fhahaha-102.html%22%20title%3D%227481%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E%E6%97%A0%E8%81%8A%E5%9B%BE%E5%A4%A7%E5%90%90%E6%A7%BD-20190116%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Faffective-presence.html%22%20title%3D%225206%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E%E8%AE%A9%E4%BD%A0%E5%91%A8%E5%9B%B4%E7%9A%84%E4%BA%BA%E6%84%9F%E5%88%B0%E8%88%92%E9%80%82%E7%9A%84%E6%80%A7%E6%A0%BC%E7%89%B9%E5%BE%81%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Faustralia-heatwave.html%22%20title%3D%223109%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E%E6%BE%B3%E5%A4%A7%E5%88%A9%E4%BA%9A%E4%BB%BF%E4%BD%9B%E5%9C%A8%E7%87%83%E7%83%A7%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F17%2Fmost-addictive.html%22%20title%3D%222822%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E5%E7%A7%8D%E6%9C%80%E6%98%93%E6%88%90%E7%98%BE%E7%9A%84%E7%89%A9%E8%B4%A8%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Ffitness-goals.html%22%20title%3D%222751%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E%E5%AE%8C%E6%88%90%E5%81%A5%E8%BA%AB%E7%9B%AE%E6%A0%87%E7%9A%845%E4%B8%AA%E5%B0%8F%E7%AA%8D%E9%97%A8%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F17%2Ffrozen-cadaver.html%22%20title%3D%222287%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E%E4%B8%80%E4%BD%8D87%E5%B2%81%E7%9A%84%E8%80%81%E5%A6%87%E4%BA%BA%E6%8D%90%E7%8C%AE%E9%81%97%E4%BD%93%EF%BC%8C%E4%B8%BA%E7%A0%94%E7%A9%B6%E8%A2%AB%E2%80%9C%E5%88%87%E6%88%90%E2%80%9D27%2C000%E5%9D%97%E8%96%84%E7%89%87%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Foumuamua.html%22%20title%3D%222275%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E%E5%85%B3%E4%BA%8E%E7%AC%AC%E4%B8%80%E9%A2%97%E6%9D%A5%E8%87%AA%E5%A4%AA%E9%98%B3%E7%B3%BB%E5%A4%96%E7%9A%84%E5%B0%8F%E8%A1%8C%E6%98%9F%E2%80%94%E2%80%94%26%238221%3B%E5%A5%A5%E9%BB%98%E9%BB%98%26%238221%3B%E8%83%8C%E5%90%8E%E4%BD%A0%E4%B8%8D%E7%9F%A5%E9%81%93%E7%9A%84%E6%95%85%E4%BA%8B%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F17%2Fassociated-diseases.html%22%20title%3D%221925%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E%E7%A6%81%E9%A3%9F%E5%AF%B9%E8%BA%AB%E4%BD%93%E6%9C%89%E5%93%AA%E4%BA%9B%E5%A5%BD%E5%A4%84%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Fadorable-treefrog.html%22%20title%3D%221889%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E%E6%96%B0%E5%8F%91%E7%8E%B0%E4%BA%86%E4%B8%80%E7%A7%8D%E5%8F%AF%E7%88%B1%E5%8F%88%E5%A5%87%E6%80%AA%E7%9A%84%E6%A0%91%E8%9B%99%3C%2Fa%3E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F17%2Flearning-problem.html%22%20title%3D%221885%E6%AC%A1%E6%B5%8F%E8%A7%88%22%3E%E6%95%B0%E5%AD%A6%E5%AE%B6%E8%AE%BE%E8%AE%A1%E5%87%BA%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E6%B0%B8%E8%BF%9C%E3%80%8C%E5%AD%A6%E4%B8%8D%E4%BC%9A%E3%80%8D%E7%9A%84%E9%97%AE%E9%A2%98%3C%2Fa%3E%3C%2Fli%3E'));\r\n",
      "\t</script>\r\n",
      "</ol>\r\n",
      "        </div>\r\n",
      "        <div class=\"hot-list-item\" id=\"list-hotlike\">\r\n",
      "            <!-- 日最赞排行 -->\r\n",
      "            <ol>\r\n",
      "\t\t<script>\r\n",
      "\t\tdocument.write(decodeURIComponent('%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F15%2Fhahaha-101.html%22%3E%E6%97%A0%E8%81%8A%E5%9B%BE%E5%A4%A7%E5%90%90%E6%A7%BD-20190115%3C%2Fa%3E%20%2097%E8%B5%9E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F14%2Fhahaha-100.html%22%3E%E6%97%A0%E8%81%8A%E5%9B%BE%E5%A4%A7%E5%90%90%E6%A7%BD-20190114%3C%2Fa%3E%20%2070%E8%B5%9E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Fhahaha-102.html%22%3E%E6%97%A0%E8%81%8A%E5%9B%BE%E5%A4%A7%E5%90%90%E6%A7%BD-20190116%3C%2Fa%3E%20%2050%E8%B5%9E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Foumuamua.html%22%3E%E5%85%B3%E4%BA%8E%E7%AC%AC%E4%B8%80%E9%A2%97%E6%9D%A5%E8%87%AA%E5%A4%AA%E9%98%B3%E7%B3%BB%E5%A4%96%E7%9A%84%E5%B0%8F%E8%A1%8C%E6%98%9F%E2%80%94%E2%80%94%26%238221%3B%E5%A5%A5%E9%BB%98%E9%BB%98%26%238221%3B%E8%83%8C%E5%90%8E%E4%BD%A0%E4%B8%8D%E7%9F%A5%E9%81%93%E7%9A%84%E6%95%85%E4%BA%8B%3C%2Fa%3E%20%2023%E8%B5%9E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Ffuels-extremist.html%22%3E%E6%9C%80%E5%8F%8D%E8%BD%AC%E5%9F%BA%E5%9B%A0%E7%9A%84%E4%BA%BA%E5%85%B6%E5%AE%9E%E6%9C%80%E4%B8%8D%E6%87%82%E8%BD%AC%E5%9F%BA%E5%9B%A0%3C%2Fa%3E%20%2017%E8%B5%9E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F15%2Ffitness-misconceptions.html%22%3E%E5%85%B3%E4%BA%8E%E5%81%A5%E8%BA%AB%E7%9A%8411%E6%9D%A1%E9%94%99%E8%AF%AF%E8%A7%82%E5%BF%B5%3C%2Fa%3E%20%2013%E8%B5%9E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Ffactslides-16.html%22%3E%E5%8D%81%E4%B8%87%E4%B8%AA%E5%86%B7%E7%9F%A5%E8%AF%86%28%E5%8D%81%E4%B8%83%29%3C%2Fa%3E%20%2011%E8%B5%9E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Fjames-watson.html%22%3E%E5%8F%91%E7%8E%B0%E4%BA%86DNA%E5%8F%8C%E8%9E%BA%E6%97%8B%E7%BB%93%E6%9E%84%E7%9A%84%E8%AF%BA%E5%A5%96%E5%BE%97%E4%B8%BB%E8%A2%AB%E5%89%A5%E5%A4%BA%E4%BA%86%E8%8D%A3%E8%AA%89%E5%A4%B4%E8%A1%94%3C%2Fa%3E%20%2010%E8%B5%9E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Faffective-presence.html%22%3E%E8%AE%A9%E4%BD%A0%E5%91%A8%E5%9B%B4%E7%9A%84%E4%BA%BA%E6%84%9F%E5%88%B0%E8%88%92%E9%80%82%E7%9A%84%E6%80%A7%E6%A0%BC%E7%89%B9%E5%BE%81%3C%2Fa%3E%20%209%E8%B5%9E%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F14%2Ffactslides-15.html%22%3E%E5%8D%81%E4%B8%87%E4%B8%AA%E5%86%B7%E7%9F%A5%E8%AF%86%28%E5%8D%81%E5%85%AD%29%3C%2Fa%3E%20%208%E8%B5%9E%3C%2Fli%3E'));\r\n",
      "\t</script>\r\n",
      "</ol>\r\n",
      "\t        </div>\r\n",
      "        <div class=\"hot-list-item\" id=\"list-hotcomments\">\r\n",
      "            <!-- 周评论排行 -->\r\n",
      "            <ol>\r\n",
      "\t\t<script>\r\n",
      "\t\tdocument.write(decodeURIComponent('%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Ffuels-extremist.html%22%3E%E6%9C%80%E5%8F%8D%E8%BD%AC%E5%9F%BA%E5%9B%A0%E7%9A%84%E4%BA%BA%E5%85%B6%E5%AE%9E%E6%9C%80%E4%B8%8D%E6%87%82%E8%BD%AC%E5%9F%BA%E5%9B%A0%3C%2Fa%3E%20%2091%E8%AF%84%E8%AE%BA%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F12%2Findian-waves.html%22%3E%E5%8D%B0%E5%BA%A6%E6%B0%91%E6%97%8F%E4%B8%BB%E4%B9%89%E9%AB%98%E7%82%BD%E5%AF%BC%E8%87%B4%E8%AF%A5%E5%9B%BD%E5%AD%A6%E6%9C%AF%E7%95%8C%E5%87%BA%E7%8E%B0%E4%BC%AA%E7%A7%91%E5%AD%A6%E6%B5%AA%E6%BD%AE%3C%2Fa%3E%20%2060%E8%AF%84%E8%AE%BA%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F10%2Fnever-touch-again.html%22%3E%E7%9F%A5%E9%81%93%E7%9C%9F%E7%9B%B8%E5%B0%B1%E4%B8%8D%E6%83%B3%E5%86%8D%E7%A2%B0%E7%9A%8411%E7%A7%8D%E9%A3%9F%E7%89%A9%3C%2Fa%3E%20%2056%E8%AF%84%E8%AE%BA%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F16%2Fjames-watson.html%22%3E%E5%8F%91%E7%8E%B0%E4%BA%86DNA%E5%8F%8C%E8%9E%BA%E6%97%8B%E7%BB%93%E6%9E%84%E7%9A%84%E8%AF%BA%E5%A5%96%E5%BE%97%E4%B8%BB%E8%A2%AB%E5%89%A5%E5%A4%BA%E4%BA%86%E8%8D%A3%E8%AA%89%E5%A4%B4%E8%A1%94%3C%2Fa%3E%20%2055%E8%AF%84%E8%AE%BA%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F15%2Fshowing-emotion.html%22%3E%E4%B8%BA%E4%BD%95%E7%94%B7%E6%80%A7%E5%BE%88%E5%B0%91%E5%93%AD%E6%B3%A3%EF%BC%9F%3C%2Fa%3E%20%2054%E8%AF%84%E8%AE%BA%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F10%2Fhahaha-96.html%22%3E%E6%97%A0%E8%81%8A%E5%9B%BE%E5%A4%A7%E5%90%90%E6%A7%BD-20190110%3C%2Fa%3E%20%2051%E8%AF%84%E8%AE%BA%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F14%2Fhahaha-100.html%22%3E%E6%97%A0%E8%81%8A%E5%9B%BE%E5%A4%A7%E5%90%90%E6%A7%BD-20190114%3C%2Fa%3E%20%2051%E8%AF%84%E8%AE%BA%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F14%2Ffactslides-15.html%22%3E%E5%8D%81%E4%B8%87%E4%B8%AA%E5%86%B7%E7%9F%A5%E8%AF%86%28%E5%8D%81%E5%85%AD%29%3C%2Fa%3E%20%2048%E8%AF%84%E8%AE%BA%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F11%2Fhahaha-97.html%22%3E%E6%97%A0%E8%81%8A%E5%9B%BE%E5%A4%A7%E5%90%90%E6%A7%BD-20190111%3C%2Fa%3E%20%2042%E8%AF%84%E8%AE%BA%3C%2Fli%3E%3Cli%3E%3Ca%20href%3D%22http%3A%2F%2Fjandan.net%2F2019%2F01%2F12%2Fcarafe-heats.html%22%3ECES%202019%EF%BC%9A%E8%AE%A9%E5%86%B7%E6%B0%B4%E4%B8%80%E7%A7%92%E5%8F%98%E7%83%AD%E6%B0%B4%E7%9A%84%E6%B0%B4%E5%A3%B6%3C%2Fa%3E%20%2041%E8%AF%84%E8%AE%BA%3C%2Fli%3E'));\r\n",
      "\t</script>\r\n",
      "</ol>\r\n",
      "\t        </div>\r\n",
      "    </div>\r\n",
      "    \r\n",
      "        \r\n",
      "\r\n",
      "        \r\n",
      "<!-- 5-last banner -->\r\n",
      "\r\n",
      "                <!-- other stick -->\r\n",
      "         <div id=\"box\">\r\n",
      "            <div id=\"float\" class=\"box\">\r\n",
      "                <ul><!-- 300-baidu -->\r\n",
      "                    <script type=\"text/javascript\" src=\"//a3.jandan.net/common/js/openjs/ml8rwn.js?niho=kjke\"></script>                </ul>\r\n",
      "                <ul><!-- 300-adx-->\r\n",
      "                    <script async src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"></script>\r\n",
      "<!-- 煎蛋网-全站侧栏-300x250 -->\r\n",
      "<ins class=\"adsbygoogle\"\r\n",
      "style=\"display:inline-block;width:300px;height:250px\"\r\n",
      "data-ad-client=\"ca-pub-5673546663729848\"\r\n",
      "data-ad-slot=\"1965170595/jandannet-sidebar-300x250\">\r\n",
      "</ins>\r\n",
      "<script>\r\n",
      "(adsbygoogle=window.adsbygoogle || []).push({});\r\n",
      "</script>                </ul>\r\n",
      "            </div>\r\n",
      "        </div>\r\n",
      "\r\n",
      "        \r\n",
      "\r\n",
      "    <!-- hot-tabs JS -->\r\n",
      "    <script>\n",
      "    (function($) {\n",
      "        function add_show_more() {\n",
      "            var $this = $(this);\n",
      "            var pHeight = 0;\n",
      "            $this.find('p').each(function () {\n",
      "                pHeight += $(this).height();\n",
      "            });\n",
      "            if (pHeight > $this.height()) {\n",
      "                var show_more = $this.find('.show_more');\n",
      "                if (show_more.length == 0) {\n",
      "                    $this.append('<div class=\"show_more\"> &DownTeeArrow;  展开</div>')\n",
      "                }\n",
      "            }\n",
      "        }\n",
      "\n",
      "        $('.hot-tabs li').click(function () {\n",
      "            var tab = this.id.split('-')[1];\n",
      "            var parent = $(this).parent();\n",
      "            parent.find('li').removeClass('current');\n",
      "            parent.parent().find('.hot-list-item').removeClass('hot-list-item-current');\n",
      "            $(this).addClass('current');\n",
      "            var list_tab = $('#list-' + tab);\n",
      "            list_tab.addClass('hot-list-item-current');\n",
      "            list_tab.find('.acv_comment').each(add_show_more);\n",
      "            list_tab.find('.gif-mask').each(function () {\n",
      "                var $this = $(this);\n",
      "                if ($this.height() > 0) {\n",
      "                    return;\n",
      "                }\n",
      "                $this.parent().css('position', 'relative');\n",
      "                var img = $this.prev();\n",
      "                var position = img.position();\n",
      "                $this.css({\n",
      "                    'height': img.height(),\n",
      "                    'width': img.width(),\n",
      "                    'line-height': img.height() + 'px',\n",
      "                    'left': position.left,\n",
      "                    'top': position.top\n",
      "                });\n",
      "            });\n",
      "        });\n",
      "        $(window).load(function () {\n",
      "            $('.acv_comment').click(function () {\n",
      "                var $this = $(this);\n",
      "                var show_more = $this.find('.show_more');\n",
      "                if (show_more.length == 0) {\n",
      "                    return;\n",
      "                }\n",
      "                if (!$this.hasClass('acv_comment_full_size')) {\n",
      "                    $this.addClass('acv_comment_full_size');\n",
      "                    show_more.html(' &UpTeeArrow; 收起');\n",
      "                } else {\n",
      "                    $this.removeClass('acv_comment_full_size');\n",
      "                    show_more.html(' &DownTeeArrow; 展开');\n",
      "                }\n",
      "            }).each(add_show_more);\n",
      "        });\n",
      "    })($);\n",
      "</script>\r\n",
      "    <!-- END sidebar -->\r\n",
      "\r\n",
      "    <div class=\"break\"></div>\r\n",
      "</div>\r\n",
      "<!-- END body --><!-- BEGIN footer -->\r\n",
      "</div>\r\n",
      "<a id=\"nav_top\" style=\"cursor:pointer;\" title=\"回到页头\"><span>&#9650;</span></a>\r\n",
      "<div id=\"footer\">\r\n",
      "\t\t<a href=\"http://www.miibeian.gov.cn/\" target=\"_blank\" rel=\"external nofollow\">鄂ICP备11008023号-1</a> ·  <a href=\"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=42018502002747\" target=\"_blank\" rel=\"external nofollow\">鄂公网安备42018502002747号</a> ·  投稿及反馈：TG@jandan.com\r\n",
      "</div>\r\n",
      "<!-- END footer -->\r\n",
      "<!-- BEGIN JS -->\r\n",
      "<script>\r\n",
      "(function(){\r\n",
      "    var bp = document.createElement('script');\r\n",
      "     bp.src = 'http://push.zhanzhang.baidu.com/push.js'; \r\n",
      "     var s = document.getElementsByTagName(\"script\")[0];\r\n",
      "    s.parentNode.insertBefore(bp, s);\r\n",
      "})();\r\n",
      "</script>\r\n",
      "\r\n",
      "<!-- Global site tag (gtag.js) - Google Analytics -->\r\n",
      "<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-462921-3\"></script>\r\n",
      "<script>\r\n",
      "  window.dataLayer = window.dataLayer || [];\r\n",
      "  function gtag(){dataLayer.push(arguments);}\r\n",
      "  gtag('js', new Date());\r\n",
      "\r\n",
      "  gtag('config', 'UA-462921-3');\r\n",
      "</script>\r\n",
      "\r\n",
      "\r\n",
      "<!-- END JS -->\r\n",
      "\r\n",
      "</div>\r\n",
      "<!-- END wrapper -->\r\n",
      "</body>\r\n",
      "</html>\r\n",
      "\n"
     ]
    }
   ],
   "source": [
    "dowmload_links = []\n",
    "path = 'file/image/'\n",
    "headers={'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'}\n",
    "url = 'http://jandan.net/ooxx'\n",
    "res = requests.get(url,headers=headers)\n",
    "selector=etree.HTML(res.text)\n",
    "urls=selector.xpath('//p/a[@class=\"view_img_link\"]/@href')\n",
    "print(urls)\n",
    "print(res.text)\n",
    "# print(imgs)\n",
    "# for img in imgs:\n",
    "#     print(img.get('src'))\n",
    "#     dowmload_links.append(img.get('src'))\n",
    "# print(dowmload_links)\n",
    "# for item in dowmload_links:\n",
    "#     new_path=path+item[-18:]\n",
    "#     urlretrieve(item,new_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
